package com.ashley.day_03;

public class SanYuanTest {

	public static void main(String[] args) {
		int m = 25;
		int n = 12;
		int max = (m > n) ? m : n;
		System.out.println("max = " + max);//max = 25

		double i = 1.4;
		double j = 2.1;
		double h = 0.7;
		double max1 = (i > j) ? i : j;
		double max2 = (max1 > h) ? max1 : h;
		System.out.println("三个数中最大值为 ：" + max2);//三个数中最大值为 ：2.1

	}

}
